package study2018.com.xtianzhuang.www.luncene;

import org.junit.BeforeClass;
import org.junit.Test;

public class TestSearchUtil {

	static SearchUtil su;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		su = new SearchUtil();
	}

	@Test
	public void testTermQuery() {
		su.termQuery("content", "hello", 5);
	}

	@Test
	public void testTermRangeQuery() {
		su.termRangeQuery("name", "2", "5", 15, false, false);
	}

	@Test
	public void testQueryByNumericRange() {
		su.queryByNumericRange("id", 3, 4, 10, false, true);
	}

}